﻿using System.Collections.Generic;
using BLL.Services.Authors;

namespace Web.Models
{
    public class AuthorListModel
    {
        public IEnumerable<AuthorModel> Authors { get; set; }
 
        public class AuthorModel
        {
             public AuthorModel(Author author)
             {
                 Id = author.AuthorId;
                 FirstName = author.FirstName;
                 LastName = author.LastName;
             }

             public int Id { get; set; }

             public string FirstName { get; set; }

             public string LastName { get; set; }
        }
    }
}